{template "header.html"}

<section class="main-content-area">
    <div class="container">
        <!-- bradcame start -->
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                <div class="greentect_bradcame">
                    <ul>
                        <li><a href="{SITE_URL}">首页</a></li>
                        <li>
                            <a href="{MEMBER_URL}">用户中心</a>
                        </li>
                        <li>
                            <span>积分付款</span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>


        <form class="form-horizontal" method="post" role="form" id="myform">
            {dr_form_hidden()}
            {if $is_address}
            <div class="portlet light bordered" style="box-shadow:0 0px 0px 0px rgba(0,0,0,.03)">
                <div class="portlet-title">
                    <div class="caption">
                        <span class="caption-subject ">收货地址</span>
                    </div>
                </div>
                <div class="portlet-body">
                    <div class="box-border">
                        <ul>
                            {loop $address $t}
                            <li>
                                <label>
                                    <input onclick="dr_order_address_price({$t.city})" type="radio" {if $t.default}checked{/if} name="address" value="{$t.id}">
                                    <a href="javascript:;" onclick="dr_iframe('修改地址', '{dr_url('order/address/index')}&id={$t.id}', '50%', '60%')"><span>{$t.name}</span> <span>{dr_linkagepos(FC_ADDRESS_CITY, $t.city, '', '')}</span> <span>{$t.address}</span>  <span>{$t.phone}</span></a>
                                </label>
                            </li>
                            {if $t.default}
                            <script type="text/javascript">
                                // 获取运费和总价
                                dr_order_address_price({$t.city})
                            </script>
                            {/if}
                            {/loop}
                        </ul>
                        <label style="margin-top: 10px"><a onclick="dr_iframe('新增地址', '{dr_url('order/address/index')}', '50%', '60%')" class=" btn green btn-sm"><i class="fa fa-home"></i> 添加收货地址</a></label>
                    </div>
                </div>
            </div>
            {/if}

            <div class="portlet light bordered" style="box-shadow:0 0px 0px 0px rgba(0,0,0,.03)">
                <div class="portlet-title">
                    <div class="caption">
                        <span class="caption-subject ">商品详情</span>
                    </div>
                </div>
                <p class="portlet-body">

                    <p>
                        商品名称：{$data.title}
                    </p>
                    <p>
                        购买积分：{$score}
                    </p>
                    <p>
                        我的积分：{$member.score}
                    </p>
                    <p>
                        <textarea style="width:100%;height: 100%" class="form-control" placeholder="买家留言" name="remark"></textarea>
                    </p>

                    <p style="margin-top: 20px">
                        <button type="button" class="button btn green btn-sm" onclick="dr_ajax_submit('{FC_NOW_URL}', 'myform', 1000)">立即购买</button>
                    </p>
                </div>
            </div>



        </form>

    </div>
</section>


{template "footer.html", "/"}